<template>
	<view class="cu-modal" :class="props.modalName == props.tag ? 'show' : ''">
		<view class="cu-dialog">
			<slot name="content"></slot>
		</view>
	</view>
</template>

<script setup lang="ts">
	import {
		useSettingStore
	} from '@/stores/index';
	import {
		watch,
		computed,
		ref
	} from 'vue';
	const setting = useSettingStore();
	const emit = defineEmits(['action']);
	const props = defineProps({
		modalName: {
			type: String,
			default: ''
		},
		tag: {
			type: String,
			default: 'AuthorizationModal'
		}
	});
	/**
	 * 获取微信手机号code
	 */
	const decryptPhoneNumber = (e: any) => {
		console.log(e.detail);
		emit('action', e);
	};
</script>

<style>
	.swiper-item {
		height: 100%;
	}
</style>
